package cn.le.handler.banks;

import cn.le.bean.enums.EnumMsgCode;
import cn.le.bean.util.NettyMsgUtils;
import cn.le.bean.vo.NettyMsg;
import cn.le.inf.HandlerCode;
import cn.le.inf.NettyHandler;
import io.netty.channel.ChannelHandlerContext;
import org.springframework.stereotype.Component;

@Component
@HandlerCode(EnumMsgCode.handler_heartbeat)
public class HeartBeatRespHandler implements NettyHandler {

    @Override
    public void doFilter(ChannelHandlerContext ctx, NettyMsg msg) {
        ctx.writeAndFlush(NettyMsgUtils.getRespHeartBeat());
    }
}
